package com.gimi.cloud.bbp.app.consumer.service.sys;

import com.gimi.cloud.bbp.dto.base.BaseDTO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 系统通用接口
 * @author wbj
 * @version 1.0
 * @Description
 * @create 2018-01-26
 **/
public interface PublicService {

    /**
     * 上传文件
     * @param request
     * @param response
     * @param dto
     * @throws Exception
     */
    void fileUpload(HttpServletRequest request, HttpServletResponse response, BaseDTO dto) throws Exception;

    /**
     * 根据短路径获取文件路径
     * @param request
     * @param response
     * @param fileName 文件名称
     * @throws Exception
     */
    String getFilePath(HttpServletRequest request, HttpServletResponse response, String fileName);
}
